//
//  MensaListController.h
//  RegBars
//
//  Created by Huu Nhat on 9/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WeekCSVParser.h"

@class MensaCell;

@interface MensaListController : UIViewController {
	MensaCell *mensaCell;
	UITableView *mensaTable;
    UIView *titleView;
    UIView *leftView;
    UIView *centerView;
    UIView *rightView;
    UIImageView *titleBarBackground;
    UILabel *titleLabel;
    UIButton *previousButton;
    UIButton *nextButton;
	UIView *loadingView;
	NSMutableArray *plansArray;
	NSMutableArray *viewArrays;
	NSMutableArray *vorspeisenArray;
	NSMutableArray *hauptspeisenArray;
	NSMutableArray *nachtischArray;
	NSMutableArray *suppeArray;
	UIView *headerSection1;
	UIView *headerSection2;
	UIView *headerSection3;
	UIView *headerSection4;
    BOOL firstTime;
}

@property (nonatomic, retain) IBOutlet MensaCell *mensaCell;
@property (nonatomic, retain) IBOutlet UITableView *mensaTable;
@property (nonatomic, retain) IBOutlet UIView *titleView;
@property (nonatomic, retain) IBOutlet UIView *leftView;
@property (nonatomic, retain) IBOutlet UIView *centerView;
@property (nonatomic, retain) IBOutlet UIView *rightView;
@property (nonatomic, retain) IBOutlet UIImageView *titleBarBackground;
@property (nonatomic, retain) IBOutlet UILabel *titleLabel;
@property (nonatomic, retain) IBOutlet UIButton *previousButton;
@property (nonatomic, retain) IBOutlet UIButton *nextButton;
@property (nonatomic, retain) IBOutlet UIView *loadingView;
@property (nonatomic, retain) NSMutableArray *viewArrays;
@property (nonatomic, retain) NSMutableArray *plansArray;
@property (nonatomic, retain) IBOutlet UIView *headerSection1;
@property (nonatomic, retain) IBOutlet UIView *headerSection2;
@property (nonatomic, retain) IBOutlet UIView *headerSection3;
@property (nonatomic, retain) IBOutlet UIView *headerSection4;

- (IBAction)previousButtonPress;
- (IBAction)nextButtonPress;
- (void) showPreviosView;
- (void) showNextView;
- (void) layout;
- (void) updateLeft;
- (void) updateRight;
- (void) separatePlans;
- (void) updatePlan:(int) dateValue;
- (IBAction)backToCity:(id)sender;

@end
